﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OnHook.Business.IServices.Common
{
    /// <summary>
    /// 数据库服务
    /// </summary>
    public interface IDatabaseService
    {
        /// <summary>
        /// 初始化表和数据库
        /// </summary>
        void CreateTables();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="entityName"></param>
        void CreateTable(string entityName);
        /// <summary>
        /// 创建应用的配置
        /// </summary>
        /// <returns></returns>
        Task CreateAppSetting();
        /// <summary>
        /// 根据OptionKey创建配置
        /// </summary>
        /// <param name="optionKeyName"></param>
        /// <returns></returns>
        Task CreateAppSetting(string optionKeyName);
    }
}
